package com.hgyc.mom.qms.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;

import com.hgyc.mom.common.annotation.Excel;
import com.hgyc.mom.core.mybatis.EQ;
import com.hgyc.mom.core.mybatis.Like;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 检测模板
 * </p>
 *
 * @author fwj
 * @since 2025-09-26
 */
@Data
@TableName("qms_template")
@Schema(name="检测模板对象", description="检测模板对象")
public class QmsTemplate implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "检测模板ID")
    private Long id;

    @Excel(name = "检测模板编号")
    @Schema(description = "检测模板编号")
    private String templateCode;

    @Excel(name = "检测模板名称")
    @EQ
    @Schema(description = "检测模板名称")
    private String templateName;

    @Excel(name = "检测种类")
    @EQ
    @Schema(description = "检测种类")
    private String qcTypes;

    @Excel(name = "是否启用")
    @EQ
    @Schema(description = "是否启用")
    private Long enableFlag;

    @Excel(name = "备注")
    @Schema(description = "备注")
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建者")
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新者")
    private Long updateBy;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}
